import {
L_request
} from './request.js';


export function getmessage(secrch) {
  return L_request({
    url: 'admin/Goodscheck/getmsg',
    method: 'post',
    data:{
      secrchS:secrch
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })

}

export function senDelMes(id){
  return L_request({
    url:'admin/Goodscheck/index',
    method:'post',
    data:{
      nowid:id
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function  sendSta(id){
  return L_request({
    url:'admin/Goodscheck/changesta',
    method:'post',
    data:{
      nowid:id
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function pendingMsg(secrch){
  return L_request({
    url:'admin/Goodscheck/getpending',
    method:'post',
    data:{
      secrchS:secrch
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function okMsg(id){
  return L_request({
    url:'admin/Goodscheck/okchange',
    method:'post',
    data:{
      nowid:id
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function notokMsg(id){
  return L_request({
    url:'admin/Goodscheck/notokchange',
    method:'post',
    data:{
      nowid:id
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function sendChangeMsg(data){
  return L_request({
    url:'admin/Goodscheck/sendChangeMsg',
    method:'post',
    data:data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}